package com.navi.loaddata.core.gpEntity;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Objects;

public class WppShtOpeConfExtPK implements Serializable {
    private String opeId;
    private String targetColumn;
    private String valigFlg;

    @Column(name = "ope_id")
    @Id
    public String getOpeId() {
        return opeId;
    }

    public void setOpeId(String opeId) {
        this.opeId = opeId;
    }

    @Column(name = "target_column")
    @Id
    public String getTargetColumn() {
        return targetColumn;
    }

    public void setTargetColumn(String targetColumn) {
        this.targetColumn = targetColumn;
    }

    @Column(name = "valig_flg")
    @Id
    public String getValigFlg() {
        return valigFlg;
    }

    public void setValigFlg(String valigFlg) {
        this.valigFlg = valigFlg;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        WppShtOpeConfExtPK that = (WppShtOpeConfExtPK) o;
        return Objects.equals(opeId, that.opeId) &&
                Objects.equals(targetColumn, that.targetColumn) &&
                Objects.equals(valigFlg, that.valigFlg);
    }

    @Override
    public int hashCode() {

        return Objects.hash(opeId, targetColumn, valigFlg);
    }
}
